package com.example.demo.DBmake;

import com.example.demo.JsonObj.ChatMessObj;
import com.example.demo.JsonObj.FriListObj;
import com.example.demo.JsonObj.FriendObj;

import java.util.ArrayList;

public interface DateBaseImp {
    boolean updateItem(String sql);
    boolean DbConnect();
    boolean DisConnect();
    boolean CheckPassword(String username,String Pwd);
    boolean CheckUsername(String username);
    int CheckUserCom(int uid);
    String GetSalt(String username);
    String GetNickname(int uid);
    String GetHeadPic(int uid);
    String GetUsername(int Uid);
    int GetUid(String username);
    String GetFriJson(int uid);
    FriListObj FRL2LFR(FriendObj t,int myUid);
    ArrayList<ChatMessObj> GetMessList(int myUid,int toUid,String myNickname,String toNickname,String myHeadPic,String toHeadPic);
}
